home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / datasheets and manuals / Hardware / WHT / scsi / dsr_sources_2_2001 / alot < prev    next >
Text File  |  2006-10-19  |  371b  |  24 lines

  1. **
  2. *
  3. *  I do this so much I decided to make it a subroutine.  If
  4. *  I were a real stud, I'd use a macro and the RAG assembler.
  5. *
  6. **
  7.  
  8. * Input
  9. *    R7 = AU
  10. *    R6 = SCSI ID
  11. *
  12. * Output
  13. *    R7,R8 = SCSI Sector
  14. *    R1 = Sector buffer pointer
  15. *
  16.  
  17. ALOT   LDCR @B04,4
  18.        MOV  R6,R3
  19.        SRL  R3,8
  20.        SLA  R3,1
  21.        MPY  @SAUTBL(R3),R7
  22.        LDCR @ZERO,4
  23.        RT
  24.